package whf.framework.workflow.entity;

import whf.framework.entity.AbstractEntity;
import whf.framework.util.BeanUtils;

@SuppressWarnings("serial")
public class AbstractWorkflowEntity extends AbstractEntity implements WorkflowEntity {
	private long processInstanceId;
	
	private String priority;
	
	private String status;
	
	private WorkflowDefinition workflowDefinition;
	
	public AbstractWorkflowEntity() {
		
	}
	
	public AbstractWorkflowEntity(AbstractWorkflowEntity form) {
		BeanUtils.cloneProperties(this, form, 
				new String[]{"id", "name", "code", "remarks", "priority", "status", "workflowDefinition", "processInstanceId"});
	}
	
	public long getProcessInstanceId() {
		return processInstanceId;
	}

	public void setProcessInstanceId(long processInstanceId) {
		this.processInstanceId = processInstanceId;
	}

	public String getPriority() {
		return priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}

	public WorkflowDefinition getWorkflowDefinition() {
		return workflowDefinition;
	}

	public void setWorkflowDefinition(WorkflowDefinition workflowDefinition) {
		this.workflowDefinition = workflowDefinition;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}
